<?php 
$valor=$T2975;
if ($AUX3689<>"") {
	$SQL="DELETE FROM td_subsidiotasa WHERE idpreg=3689 and id=$id";
	$forms2->Execute($SQL) or DIE ($SQL);
	$SQL="INSERT INTO th_subsidiotasa(id,idpreg,idform,valor,iduser,fecha) VALUES ($id,3689,$idform,'$AUX3689','$idu',NOW())";
	$forms2->Execute($SQL) or DIE ($SQL);
	$SQL="INSERT INTO td_subsidiotasa(id,idpreg,idform,valor,valorold) VALUES ($id,3689,$idform,'$AUX3689','')";
	$forms2->Execute($SQL) or DIE ($SQL);
}
?>